package com.xf.toy.bean;

import java.util.ArrayList;
import java.util.List;

public class ToyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer limitStart;

    protected Integer limitEnd;

    public ToyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(Integer limitStart) {
        this.limitStart=limitStart;
    }

    public Integer getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(Integer limitEnd) {
        this.limitEnd=limitEnd;
    }

    public Integer getLimitEnd() {
        return limitEnd;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andToyCodeIsNull() {
            addCriterion("toy_code is null");
            return (Criteria) this;
        }

        public Criteria andToyCodeIsNotNull() {
            addCriterion("toy_code is not null");
            return (Criteria) this;
        }

        public Criteria andToyCodeEqualTo(String value) {
            addCriterion("toy_code =", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeNotEqualTo(String value) {
            addCriterion("toy_code <>", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeGreaterThan(String value) {
            addCriterion("toy_code >", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeGreaterThanOrEqualTo(String value) {
            addCriterion("toy_code >=", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeLessThan(String value) {
            addCriterion("toy_code <", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeLessThanOrEqualTo(String value) {
            addCriterion("toy_code <=", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeLike(String value) {
            addCriterion("toy_code like", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeNotLike(String value) {
            addCriterion("toy_code not like", value, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeIn(List<String> values) {
            addCriterion("toy_code in", values, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeNotIn(List<String> values) {
            addCriterion("toy_code not in", values, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeBetween(String value1, String value2) {
            addCriterion("toy_code between", value1, value2, "toyCode");
            return (Criteria) this;
        }

        public Criteria andToyCodeNotBetween(String value1, String value2) {
            addCriterion("toy_code not between", value1, value2, "toyCode");
            return (Criteria) this;
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andToyNameIsNull() {
            addCriterion("toy_name is null");
            return (Criteria) this;
        }

        public Criteria andToyNameIsNotNull() {
            addCriterion("toy_name is not null");
            return (Criteria) this;
        }

        public Criteria andToyNameEqualTo(String value) {
            addCriterion("toy_name =", value, "toyName");
            return (Criteria) this;
        }

        public Criteria andToyNameNotEqualTo(String value) {
            addCriterion("toy_name <>", value, "toyName");
            return (Criteria) this;
        }

        public Criteria andToyNameGreaterThan(String value) {
            addCriterion("toy_name >", value, "toyName");
            return (Criteria) this;
        }

        public Criteria andToyNameGreaterThanOrEqualTo(String value) {
            addCriterion("toy_name >=", value, "toyName");
            return (Criteria) this;
        }

        public Criteria andToyNameLessThan(String value) {
            addCriterion("toy_name <", value, "toyName");
            return (Criteria) this;
        }

        public Criteria andToyNameLessThanOrEqualTo(String value) {
            addCriterion("toy_name <=", value, "toyName");
            return (Criteria) this;
        }

        public Criteria andToyNameLike(String value) {
            addCriterion("toy_name like", value, "toyName");
            return (Criteria) this;
        }

        public Criteria andToyNameNotLike(String value) {
            addCriterion("toy_name not like", value, "toyName");
            return (Criteria) this;
        }

        public Criteria andToyNameIn(List<String> values) {
            addCriterion("toy_name in", values, "toyName");
            return (Criteria) this;
        }

        public Criteria andToyNameNotIn(List<String> values) {
            addCriterion("toy_name not in", values, "toyName");
            return (Criteria) this;
        }

        public Criteria andToyNameBetween(String value1, String value2) {
            addCriterion("toy_name between", value1, value2, "toyName");
            return (Criteria) this;
        }

        public Criteria andToyNameNotBetween(String value1, String value2) {
            addCriterion("toy_name not between", value1, value2, "toyName");
            return (Criteria) this;
        }

        public Criteria andToyThemeIsNull() {
            addCriterion("toy_theme is null");
            return (Criteria) this;
        }

        public Criteria andToyThemeIsNotNull() {
            addCriterion("toy_theme is not null");
            return (Criteria) this;
        }

        public Criteria andToyThemeEqualTo(String value) {
            addCriterion("toy_theme =", value, "toyTheme");
            return (Criteria) this;
        }

        public Criteria andToyThemeNotEqualTo(String value) {
            addCriterion("toy_theme <>", value, "toyTheme");
            return (Criteria) this;
        }

        public Criteria andToyThemeGreaterThan(String value) {
            addCriterion("toy_theme >", value, "toyTheme");
            return (Criteria) this;
        }

        public Criteria andToyThemeGreaterThanOrEqualTo(String value) {
            addCriterion("toy_theme >=", value, "toyTheme");
            return (Criteria) this;
        }

        public Criteria andToyThemeLessThan(String value) {
            addCriterion("toy_theme <", value, "toyTheme");
            return (Criteria) this;
        }

        public Criteria andToyThemeLessThanOrEqualTo(String value) {
            addCriterion("toy_theme <=", value, "toyTheme");
            return (Criteria) this;
        }

        public Criteria andToyThemeLike(String value) {
            addCriterion("toy_theme like", value, "toyTheme");
            return (Criteria) this;
        }

        public Criteria andToyThemeNotLike(String value) {
            addCriterion("toy_theme not like", value, "toyTheme");
            return (Criteria) this;
        }

        public Criteria andToyThemeIn(List<String> values) {
            addCriterion("toy_theme in", values, "toyTheme");
            return (Criteria) this;
        }

        public Criteria andToyThemeNotIn(List<String> values) {
            addCriterion("toy_theme not in", values, "toyTheme");
            return (Criteria) this;
        }

        public Criteria andToyThemeBetween(String value1, String value2) {
            addCriterion("toy_theme between", value1, value2, "toyTheme");
            return (Criteria) this;
        }

        public Criteria andToyThemeNotBetween(String value1, String value2) {
            addCriterion("toy_theme not between", value1, value2, "toyTheme");
            return (Criteria) this;
        }

        public Criteria andToyAgeIsNull() {
            addCriterion("toy_age is null");
            return (Criteria) this;
        }

        public Criteria andToyAgeIsNotNull() {
            addCriterion("toy_age is not null");
            return (Criteria) this;
        }

        public Criteria andToyAgeEqualTo(String value) {
            addCriterion("toy_age =", value, "toyAge");
            return (Criteria) this;
        }

        public Criteria andToyAgeNotEqualTo(String value) {
            addCriterion("toy_age <>", value, "toyAge");
            return (Criteria) this;
        }

        public Criteria andToyAgeGreaterThan(String value) {
            addCriterion("toy_age >", value, "toyAge");
            return (Criteria) this;
        }

        public Criteria andToyAgeGreaterThanOrEqualTo(String value) {
            addCriterion("toy_age >=", value, "toyAge");
            return (Criteria) this;
        }

        public Criteria andToyAgeLessThan(String value) {
            addCriterion("toy_age <", value, "toyAge");
            return (Criteria) this;
        }

        public Criteria andToyAgeLessThanOrEqualTo(String value) {
            addCriterion("toy_age <=", value, "toyAge");
            return (Criteria) this;
        }

        public Criteria andToyAgeLike(String value) {
            addCriterion("toy_age like", value, "toyAge");
            return (Criteria) this;
        }

        public Criteria andToyAgeNotLike(String value) {
            addCriterion("toy_age not like", value, "toyAge");
            return (Criteria) this;
        }

        public Criteria andToyAgeIn(List<String> values) {
            addCriterion("toy_age in", values, "toyAge");
            return (Criteria) this;
        }

        public Criteria andToyAgeNotIn(List<String> values) {
            addCriterion("toy_age not in", values, "toyAge");
            return (Criteria) this;
        }

        public Criteria andToyAgeBetween(String value1, String value2) {
            addCriterion("toy_age between", value1, value2, "toyAge");
            return (Criteria) this;
        }

        public Criteria andToyAgeNotBetween(String value1, String value2) {
            addCriterion("toy_age not between", value1, value2, "toyAge");
            return (Criteria) this;
        }

        public Criteria andToyBrickcountIsNull() {
            addCriterion("toy_brickcount is null");
            return (Criteria) this;
        }

        public Criteria andToyBrickcountIsNotNull() {
            addCriterion("toy_brickcount is not null");
            return (Criteria) this;
        }

        public Criteria andToyBrickcountEqualTo(Long value) {
            addCriterion("toy_brickcount =", value, "toyBrickcount");
            return (Criteria) this;
        }

        public Criteria andToyBrickcountNotEqualTo(Long value) {
            addCriterion("toy_brickcount <>", value, "toyBrickcount");
            return (Criteria) this;
        }

        public Criteria andToyBrickcountGreaterThan(Long value) {
            addCriterion("toy_brickcount >", value, "toyBrickcount");
            return (Criteria) this;
        }

        public Criteria andToyBrickcountGreaterThanOrEqualTo(Long value) {
            addCriterion("toy_brickcount >=", value, "toyBrickcount");
            return (Criteria) this;
        }

        public Criteria andToyBrickcountLessThan(Long value) {
            addCriterion("toy_brickcount <", value, "toyBrickcount");
            return (Criteria) this;
        }

        public Criteria andToyBrickcountLessThanOrEqualTo(Long value) {
            addCriterion("toy_brickcount <=", value, "toyBrickcount");
            return (Criteria) this;
        }

        public Criteria andToyBrickcountIn(List<Long> values) {
            addCriterion("toy_brickcount in", values, "toyBrickcount");
            return (Criteria) this;
        }

        public Criteria andToyBrickcountNotIn(List<Long> values) {
            addCriterion("toy_brickcount not in", values, "toyBrickcount");
            return (Criteria) this;
        }

        public Criteria andToyBrickcountBetween(Long value1, Long value2) {
            addCriterion("toy_brickcount between", value1, value2, "toyBrickcount");
            return (Criteria) this;
        }

        public Criteria andToyBrickcountNotBetween(Long value1, Long value2) {
            addCriterion("toy_brickcount not between", value1, value2, "toyBrickcount");
            return (Criteria) this;
        }

        public Criteria andToyPriceIsNull() {
            addCriterion("toy_price is null");
            return (Criteria) this;
        }

        public Criteria andToyPriceIsNotNull() {
            addCriterion("toy_price is not null");
            return (Criteria) this;
        }

        public Criteria andToyPriceEqualTo(Long value) {
            addCriterion("toy_price =", value, "toyPrice");
            return (Criteria) this;
        }

        public Criteria andToyPriceNotEqualTo(Long value) {
            addCriterion("toy_price <>", value, "toyPrice");
            return (Criteria) this;
        }

        public Criteria andToyPriceGreaterThan(Long value) {
            addCriterion("toy_price >", value, "toyPrice");
            return (Criteria) this;
        }

        public Criteria andToyPriceGreaterThanOrEqualTo(Long value) {
            addCriterion("toy_price >=", value, "toyPrice");
            return (Criteria) this;
        }

        public Criteria andToyPriceLessThan(Long value) {
            addCriterion("toy_price <", value, "toyPrice");
            return (Criteria) this;
        }

        public Criteria andToyPriceLessThanOrEqualTo(Long value) {
            addCriterion("toy_price <=", value, "toyPrice");
            return (Criteria) this;
        }

        public Criteria andToyPriceIn(List<Long> values) {
            addCriterion("toy_price in", values, "toyPrice");
            return (Criteria) this;
        }

        public Criteria andToyPriceNotIn(List<Long> values) {
            addCriterion("toy_price not in", values, "toyPrice");
            return (Criteria) this;
        }

        public Criteria andToyPriceBetween(Long value1, Long value2) {
            addCriterion("toy_price between", value1, value2, "toyPrice");
            return (Criteria) this;
        }

        public Criteria andToyPriceNotBetween(Long value1, Long value2) {
            addCriterion("toy_price not between", value1, value2, "toyPrice");
            return (Criteria) this;
        }

        public Criteria andToysetsCountIsNull() {
            addCriterion("toysets_count is null");
            return (Criteria) this;
        }

        public Criteria andToysetsCountIsNotNull() {
            addCriterion("toysets_count is not null");
            return (Criteria) this;
        }

        public Criteria andToysetsCountEqualTo(Long value) {
            addCriterion("toysets_count =", value, "toysetsCount");
            return (Criteria) this;
        }

        public Criteria andToysetsCountNotEqualTo(Long value) {
            addCriterion("toysets_count <>", value, "toysetsCount");
            return (Criteria) this;
        }

        public Criteria andToysetsCountGreaterThan(Long value) {
            addCriterion("toysets_count >", value, "toysetsCount");
            return (Criteria) this;
        }

        public Criteria andToysetsCountGreaterThanOrEqualTo(Long value) {
            addCriterion("toysets_count >=", value, "toysetsCount");
            return (Criteria) this;
        }

        public Criteria andToysetsCountLessThan(Long value) {
            addCriterion("toysets_count <", value, "toysetsCount");
            return (Criteria) this;
        }

        public Criteria andToysetsCountLessThanOrEqualTo(Long value) {
            addCriterion("toysets_count <=", value, "toysetsCount");
            return (Criteria) this;
        }

        public Criteria andToysetsCountIn(List<Long> values) {
            addCriterion("toysets_count in", values, "toysetsCount");
            return (Criteria) this;
        }

        public Criteria andToysetsCountNotIn(List<Long> values) {
            addCriterion("toysets_count not in", values, "toysetsCount");
            return (Criteria) this;
        }

        public Criteria andToysetsCountBetween(Long value1, Long value2) {
            addCriterion("toysets_count between", value1, value2, "toysetsCount");
            return (Criteria) this;
        }

        public Criteria andToysetsCountNotBetween(Long value1, Long value2) {
            addCriterion("toysets_count not between", value1, value2, "toysetsCount");
            return (Criteria) this;
        }

        public Criteria andLessonCodeIsNull() {
            addCriterion("lesson_code is null");
            return (Criteria) this;
        }

        public Criteria andLessonCodeIsNotNull() {
            addCriterion("lesson_code is not null");
            return (Criteria) this;
        }

        public Criteria andLessonCodeEqualTo(String value) {
            addCriterion("lesson_code =", value, "lessonCode");
            return (Criteria) this;
        }

        public Criteria andLessonCodeNotEqualTo(String value) {
            addCriterion("lesson_code <>", value, "lessonCode");
            return (Criteria) this;
        }

        public Criteria andLessonCodeGreaterThan(String value) {
            addCriterion("lesson_code >", value, "lessonCode");
            return (Criteria) this;
        }

        public Criteria andLessonCodeGreaterThanOrEqualTo(String value) {
            addCriterion("lesson_code >=", value, "lessonCode");
            return (Criteria) this;
        }

        public Criteria andLessonCodeLessThan(String value) {
            addCriterion("lesson_code <", value, "lessonCode");
            return (Criteria) this;
        }

        public Criteria andLessonCodeLessThanOrEqualTo(String value) {
            addCriterion("lesson_code <=", value, "lessonCode");
            return (Criteria) this;
        }

        public Criteria andLessonCodeLike(String value) {
            addCriterion("lesson_code like", value, "lessonCode");
            return (Criteria) this;
        }

        public Criteria andLessonCodeNotLike(String value) {
            addCriterion("lesson_code not like", value, "lessonCode");
            return (Criteria) this;
        }

        public Criteria andLessonCodeIn(List<String> values) {
            addCriterion("lesson_code in", values, "lessonCode");
            return (Criteria) this;
        }

        public Criteria andLessonCodeNotIn(List<String> values) {
            addCriterion("lesson_code not in", values, "lessonCode");
            return (Criteria) this;
        }

        public Criteria andLessonCodeBetween(String value1, String value2) {
            addCriterion("lesson_code between", value1, value2, "lessonCode");
            return (Criteria) this;
        }

        public Criteria andLessonCodeNotBetween(String value1, String value2) {
            addCriterion("lesson_code not between", value1, value2, "lessonCode");
            return (Criteria) this;
        }

        public Criteria andCommentsIsNull() {
            addCriterion("comments is null");
            return (Criteria) this;
        }

        public Criteria andCommentsIsNotNull() {
            addCriterion("comments is not null");
            return (Criteria) this;
        }

        public Criteria andCommentsEqualTo(String value) {
            addCriterion("comments =", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotEqualTo(String value) {
            addCriterion("comments <>", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsGreaterThan(String value) {
            addCriterion("comments >", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsGreaterThanOrEqualTo(String value) {
            addCriterion("comments >=", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsLessThan(String value) {
            addCriterion("comments <", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsLessThanOrEqualTo(String value) {
            addCriterion("comments <=", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsLike(String value) {
            addCriterion("comments like", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotLike(String value) {
            addCriterion("comments not like", value, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsIn(List<String> values) {
            addCriterion("comments in", values, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotIn(List<String> values) {
            addCriterion("comments not in", values, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsBetween(String value1, String value2) {
            addCriterion("comments between", value1, value2, "comments");
            return (Criteria) this;
        }

        public Criteria andCommentsNotBetween(String value1, String value2) {
            addCriterion("comments not between", value1, value2, "comments");
            return (Criteria) this;
        }

        public Criteria andCategoryIsNull() {
            addCriterion("category is null");
            return (Criteria) this;
        }

        public Criteria andCategoryIsNotNull() {
            addCriterion("category is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryEqualTo(String value) {
            addCriterion("category =", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotEqualTo(String value) {
            addCriterion("category <>", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryGreaterThan(String value) {
            addCriterion("category >", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryGreaterThanOrEqualTo(String value) {
            addCriterion("category >=", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLessThan(String value) {
            addCriterion("category <", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLessThanOrEqualTo(String value) {
            addCriterion("category <=", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLike(String value) {
            addCriterion("category like", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotLike(String value) {
            addCriterion("category not like", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryIn(List<String> values) {
            addCriterion("category in", values, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotIn(List<String> values) {
            addCriterion("category not in", values, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryBetween(String value1, String value2) {
            addCriterion("category between", value1, value2, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotBetween(String value1, String value2) {
            addCriterion("category not between", value1, value2, "category");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}